package com.cff.pm.client;

import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.TimeUnit;

import okhttp3.Cookie;
import okhttp3.CookieJar;
import okhttp3.HttpUrl;
import okhttp3.OkHttpClient;

public interface HttpSpider {
	public static final int DEFAULT_TIMEOUT = 5000;
	public static final int SECOND_TIMEOUT = 6000;
	
	/**
	 * 默认UTF8发送post请求，application/x-www-form-urlencoded
	 * 
	 * @param uri
	 * @param paramMap
	 *            map数据
	 * @return 返回结果
	 * @throws IOException
	 */
	String doPostWithJsonResult(String uri, Map<String, String> paramMap) throws IOException;

	/**
	 * 发送get请求
	 * 
	 * @param uri
	 * @return 返回结果
	 * @throws IOException
	 */
	String doGetWithJsonResult(String uri) throws IOException;
	
	
}
